package com.lm.paymentgateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * @author liu2dog
 */
@Slf4j
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class PaymentGatewayApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext application = SpringApplication.run(PaymentGatewayApplication.class, args);
		Environment env = application.getEnvironment();
		log.info("应用 {} 运行成功！",env.getProperty("spring.application.name"));
	}

}
